package hook

import (
	"api/config"
	"api/libs/register"
	"gitee.com/dreamwood/ez/task"
)

func init() {

	task.NewTask("service_heart_beat", func() {
		register.HeartBeat()
	}).SetEvery(config.GetService().Register.HearBeatInterval)
}
